package LeetCode.NumOffer;

public class NumOffer53 {
    public int search(int[] nums, int target) {
        if(nums.length == 0){
            return 0;
        }
        int Num = 0;
        int i = 0;
        while(i < nums.length){
            if(nums[i] == target){
                Num++;
            }else{
                i++;
            }
        }
        return Num;
    }
}
